/**
  ******************************************************************************
  * @file    PfcParamDefault.c
  * @author  Silan - MC Team
  * @version 1.0.0
  * @date    2017/07/19
  * @brief   PFC driver parameter default value set.
  * @details None
  * @note    None
  ******************************************************************************
  * @attention
  * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
  * AS A RESULT, SILAN MICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
  * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
  * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
  * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  ******************************************************************************
  * Change History
  * -# 2017/07/19 | v1.0.0 | Wangjianlong | Creat file.
  *
  *
  *
  *
  *
  *
  *
  *
  *
  ******************************************************************************
  */

/********************************************************************************
 * Include section
 *******************************************************************************/
#include "PfcDrvParam.h"
#include "PfcParamDefault.h"


/*******************************************************************************
 * Global function for the current project
 ******************************************************************************/

/**
  * @brief  Set default value of struct PFC_DRV_PARAM_s.
  */
void PfcDrvParamDefault(struct PFC_DRV_PARAM_s *ptr){
  ptr->u8VacFreq                        =     DEFAULT_VacFreq;
  ptr->u16PfcPwmFreq                    =     DEFAULT_PfcPwmFreq;
  ptr->fPfcMaxIac                       =     DEFAULT_PfcMaxIac;
  ptr->u16PfcMaxVac                     =     DEFAULT_PfcMaxVac;
  ptr->u16PfcMaxVdc                     =     DEFAULT_PfcMaxVdc;
  ptr->fPfcIacPiKp                      =     DEFAULT_PfcIacPiKp;
  ptr->fPfcIacPiKi                      =     DEFAULT_PfcIacPiKi;
  ptr->fPfcVdcPiKp                      =     DEFAULT_PfcVdcPiKp;
  ptr->fPfcVdcPiKi                      =     DEFAULT_PfcVdcPiKi;
  ptr->fPfcCompGain                     =     DEFAULT_PfcCompGain;
  ptr->fPfcSmpDelay                     =     DEFAULT_PfcSmpDelay;
  ptr->u8PfcVdcOutDefault               =     DEFAULT_PfcVdcOutDefault;
  ptr->u8PfcVdcOutMin                   =     DEFAULT_PfcVdcOutMin;
  ptr->u8PfcVdcOutMax                   =     DEFAULT_PfcVdcOutMax;
  ptr->u8VdcRampAcc                     =     DEFAULT_VdcRampAcc;
  ptr->u8VdcRampDec                     =     DEFAULT_VdcRampDec;
  ptr->fMinOnTimeUS                     =     DEFAULT_MinOnTimeUS;
  ptr->fMinOffTimeUS                    =     DEFAULT_MinOffTimeUS;
  ptr->fFiltConstIacRms4User            =     DEFAULT_FiltConstIacRms4User;
  ptr->fFiltConstVacRms4User            =     DEFAULT_FiltConstVacRms4User;
  ptr->fFiltConstVdcAvg4User            =     DEFAULT_FiltConstVdcAvg4User;
  ptr->u8FiltConstVdcAvg4Ctrl           =     DEFAULT_FiltConstVdcAvg4Ctrl;
  ptr->u8VacODVal4Rms                   =     DEFAULT_VacODVal4Rms;
  ptr->u8VacORVal4Rms                   =     DEFAULT_VacORVal4Rms;
  ptr->u8VacUDVal4Rms                   =     DEFAULT_VacUDVal4Rms;
  ptr->u8VacURVal4Rms                   =     DEFAULT_VacURVal4Rms;
  ptr->u8VdcODVal4Peak                  =     DEFAULT_VdcODVal4Peak;
  ptr->u8VdcORVal4Peak                  =     DEFAULT_VdcORVal4Peak;
  ptr->u8VdcOVLVal4Peak                 =     DEFAULT_VdcOVLVal4Peak;
  ptr->u8VdcUDVal4Peak                  =     DEFAULT_VdcUDVal4Peak;
  ptr->u8VdcURVal4Peak                  =     DEFAULT_VdcURVal4Peak;
  ptr->u8IacODVal4Rms                   =     DEFAULT_IacODVal4Rms;
  ptr->u8IacORVal4Rms                   =     DEFAULT_IacORVal4Rms;
  ptr->u8PinODVal4Rms                   =     DEFAULT_PinODVal4Rms;
  ptr->u8PinORVal4Rms                   =     DEFAULT_PinORVal4Rms;
  ptr->u8MaxVoltErr                     =     DEFAULT_MaxVoltErr;
}

/*---------------------------------- End of the file ---------------------------------*/

